//*************************************************************************
//  PP2_9.java   Author: Tang caiming
//
//  Read the length in seconds, then convert it all into time, minutes,
//  seconds, and output.
//*************************************************************************

import java.util.Scanner;

public class PP2_9
{
   public static void main(String[] args)
   {
      int hour,minutes,second;

      Scanner scan = new Scanner(System.in);

      System.out.println("please input second:");
      second = scan.nextInt();
   
      second = second;
      
      hour = second / 3600;

      minutes = (second - 3600 * hour) / 60;

      second = second - 3600 * hour - 60 * minutes; 
      System.out.println("time:" + hour + "小时." + minutes + "分钟" + second + "秒.");
   }
}

